package com.LeeCode;

/**
 * 2 的幂
 */

public class Code231 {
    public static void main(String[] args) {

    }

    public boolean isPowerOfTwo(int n) {
        return n > 0 && (n & (n - 1)) == 0;
    }
}
